package net.csdn.business.common.domain.query.mirror;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MirrorConfigQuery {

    //@NotBlank(message = "currUserId不能为空")
    /** 用户id **/
    private String currUserId;

    //@NotNull(message = "type不能为空")
    @Min(value = 0, message = "type不合法")
    @Max(value = 1, message = "type不合法")
    /** 镜像仓库所属平台： 0:github 1:gitee **/
    private Integer type;

    /** 要查询源镜像的命名空间下的仓库信息 **/
    private String soruceNameSpace;

    /** 镜像要导入的目标的命名空间 **/
    private String targetNameSpace;

    /** 要查询镜像配置信息的仓库id **/
    private Long projectId;


    private Integer page=1;
    private Integer pageSize=20;
}
